package com.cnswhy.cloud.server.core.dto;

import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * <p>
 * 实体类
 *
 * </p>
 *
 * @author cnswhy
 * @since 2020-11-05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "CustomerWechatSaveDTO", description = "")
public class CustomerWechatSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商户号
     */
    @ApiModelProperty(value = "商户号")
    private Long customerId;
    /**
     * 微信openId
     */
    @ApiModelProperty(value = "微信openId", required = true)
    @Length(max = 30, message = "微信openId长度不能超过30")
    private String openId;
    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名", required = true)
    @Length(max = 10, message = "姓名长度不能超过10")
    private String realName;
    /**
     * 手机
     */
    @ApiModelProperty(value = "手机", required = true)
    @Length(max = 11, message = "手机长度不能超过11")
    private String mobile;
    /**
     * 微信昵称
     */
    @ApiModelProperty(value = "微信昵称", required = true)
    @Length(max = 20, message = "微信昵称长度不能超过20")
    private String nickName;
    /**
     * 短信验证码
     */
    @ApiModelProperty(value = "验证码", required = true)
    @Length(max = 6, message = "长度不能超过6")
    private String sysCode;

}
